package top.lixunda.ecommerce.server.user.api.entity.db;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author Xumda
 * @since 2019-11-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("log_change_pass")
public class LogChangePassDO extends Model<LogChangePassDO> {

    private static final long serialVersionUID=1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户唯一账户
     */
    @TableField("account")
    private Integer account;

    /**
     * 加密旧密码
     */
    @TableField("old")
    private String old;

    /**
     * 加密新密码
     */
    @TableField("new_pass")
    private String newPass;

    /**
     * 更改密码验证方式
     */
    @TableField("verify_type")
    private String verifyType;

    /**
     * 插入时间，即更改密码时间
     */
    @TableField("time")
    private LocalDateTime time;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
